package com.hao.wms.service.impl;

import com.hao.wms.dao.IRoleDao;
import com.hao.wms.domain.Role;
import com.hao.wms.query.PageResult;
import com.hao.wms.query.QueryObject;
import com.hao.wms.service.IRoleService;

import java.util.List;

public class RoleServiceImpl implements IRoleService {
	private IRoleDao dao;
	

	public void setDao(IRoleDao dao) {
		this.dao = dao;
	}

	@Override
	public void save(Role e) {
		dao.save(e);

	}

	@Override
	public void update(Role e) {
		dao.update(e);

	}

	@Override
	public void delete(Role e) {
		dao.delete(e);

	}

	@Override
	public Role get(Long id) {
		return dao.get(id);
	}

	@Override
	public List<Role> list() {
		return dao.list();
	}

	@Override
	public PageResult query(QueryObject qo) {
		return dao.query(qo);
	}
	
	

}
